import request from '@/utils/request'

//生成短链接 post 
export function postShortUrl(data) {
  return request({
      url:`/v1/shortUrl`,
      data: {
          longUrl: data
      },
      method: 'post'
  })
}

//生成小程序码
export function getAppletsCode(params) {
  return request({
      url:'pp/v1/qr-code',
      params,
      method: 'get'
  })
}

// 手机验证码查询
export function getVerificationCode(params) {
  return request({
      url: `/m/adm/v1/message/code`,
      method: 'get',
      params
  })
}